package cn.iot.sys.dao;

import cn.iot.sys.entity.SysLeaveApplication;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

public interface SysLeaveApplicationDao extends BaseMapper<SysLeaveApplication> {
    public List<SysLeaveApplication> getSysLeaveApplicationList(Map<String,Object> map);
    public int getCount(Map<String,Object> map);
    public int addSysLeaveApplication(SysLeaveApplication sysLeaveApplication);
    public int updSysLeaveApplication(int id);
    public int updProcessId(SysLeaveApplication sysLeaveApplication);
    public List<SysLeaveApplication> getPendingList(Map<String,Object> map);
    public int getApplicationCount();
    public List<SysLeaveApplication> getProcessedList(Map<String,Object> map);
    public int getApplicationCountByStatus();
    public int updApprover(SysLeaveApplication sysLeaveApplication);
    public int updStatusByProcessId(SysLeaveApplication sysLeaveApplication);
}
